<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/component/commonTagLib.jsp"%>
<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <meta content='width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no' name='viewport'>
    <title></title>
    <%@ include file="/WEB-INF/component/commonCSS.jsp" %>
    
    <!--[if lt IE 9]>
        <script src="lib/js/html5shiv.min.js"></script>
        <script src="lib/js/respond.min.js"></script>
    <![endif]-->
    <style type="text/css">
     div.form-group.form-group-xs{
 margin-top:6px;
 margin-bottom:0px
 }
    	.text-left {
    		color:#949494;
    	}
        
    </style>
    
</head>
<body class="skin-blue-light sidebar-mini fixed skin-blue-light-frame">
    <section class="content">   
        <form role="form" id ="form1" class="form-horizontal" action="" method="post">
           <!-- form start -->  
              <div class="box-body">
                <table class="message">
                 <tr>
                   <td class="no1">
                    <div class="form-group form-group-xs">
                            <label class="col-sm-2 text-right">发送人名称：</label>
                            <div class="col-sm-3 text-left">
                                <c:out value="${sysMessage.sendName}"></c:out>
                            </div>
                            <label class="col-sm-3 text-right">接收人名称：</label>
                            <div class="col-sm-3 text-left">
                               <c:out value="${sysMessage.receUserName}"></c:out>
                            </div>
                     </div>
                      </td>    
                    </tr>
                    <tr>
                     <td class="no2">
                     <div class="form-group form-group-xs">
                            <label class="col-sm-2 text-right">发送人所属机构：</label>
                            <div class="col-sm-3 text-left">
                               <c:out value="${sysMessage.orgName}"></c:out>
                            </div>
                            <label class="col-sm-3 text-right">接收人所属机构：</label>
                            <div class="col-sm-3 text-left">
                               <c:out value="${sysMessage.recOrgName}"></c:out>
                            </div>
                      </div>
                      </td>    
                    </tr>
                    <tr>
                   <td class="no1">
                    <div class="form-group form-group-xs">
                            <label class="col-sm-2 text-right">发送人机构类型：</label>
                            <div class="col-sm-3 text-left">
                                <c:out value="${sysMessage.acctType}"></c:out>
                            </div>
                            <label class="col-sm-3 text-right">消息类型：</label>
                            <div class="col-sm-3 text-left">
                               <c:out value="${sysMessage.type}"></c:out>
                            </div>
                     </div>
                      </td>    
                    </tr>
                    <tr>
                     <td class="no2">
                     <div class="form-group form-group-xs">
                            <label class="col-sm-2 text-right">标题：</label>
                            <div class="col-sm-3 text-left">
                               <c:out value="${sysMessage.title}"></c:out>
                            </div>
                      </div>
                      </td>    
                    </tr>
                    <tr>
                     <td class="no1">
                     <div class="form-group form-group-xs">
                            <label class="col-sm-2 text-right">内容：</label>
                            <div class="col-sm-3 text-left">
                               <c:out value="${sysMessage.content}"></c:out>
                            </div>
                      </div>
                      </td>    
                    </tr>
                    <tr>
                     <td class="no2">
                     <div class="form-group form-group-xs">
                            <label class="col-sm-2 text-right">状态：</label>
                            <div class="col-sm-3 text-left">
                               <c:out value="${sysMessage.status == 0?'新建':(sysMessage.status == 1?'已发送':'已删除') }"></c:out>
                            </div>
                            <label class="col-sm-3 text-right">更新时间：</label>
                            <div class="col-sm-3 text-left">
                               <c:out value="${sysMessage.updDatetime}"></c:out>
                            </div>
                      </div>
                      </td>    
                    </tr>
                 
                    <c:if test="${url != '' }">
                    <c:forEach items="${url}" var="list">
                    <c:if test="${list != null }">
                    <tr>
                     <td class="no1">
                     <div class="form-group form-group-xs">
                            <label class="col-sm-2 text-right">附件：</label>
                            <div class="col-sm-3 text-left">
                               <label><c:out value="${list.fileName}"></c:out></label> <a href="javascript:showImg('<c:out value="${list.url}"></c:out>','<c:out value="${list.fileName}"></c:out>','<c:out value="${list.sysInfoAttachId}"></c:out>')"  >下载</a>
                            </div>
                      </div>
                      </td>    
                    </tr>
                    </c:if>
                    </c:forEach>
                    </c:if>
                            
                      </div>

                    </table>   
                </div> 
           
                    
                 <!-- <div class="form-group form-group-xs" >
                        <label class="col-sm-2 text-right">发送人名称：</label>
                        <div class="col-sm-3 text-left">
                             <c:out value="${sysMessage.sendName}"></c:out>
                        </div>
                         <label class="col-sm-3 text-right">接收人名称：</label>
                        <div class="col-sm-3 text-left">
                             <c:out value="${sysMessage.receUserName}"></c:out>
                        </div>
                    </div>
                      <div class="form-group form-group-xs" >
                        <label class="col-sm-2 text-right">发送人所属机构：</label>
                        <div class="col-sm-3 text-left">
                             <c:out value="${sysMessage.orgName}"></c:out>
                        </div>
                         <label class="col-sm-3 text-right">接收人所属机构：</label>
                        <div class="col-sm-3 text-left">
                             <c:out value="${sysMessage.recOrgName}"></c:out>
                        </div>
                    </div>
                     <div class="form-group form-group-xs" >
                        <label class="col-sm-2 text-right">发送人机构类型：</label>
                        <div class="col-sm-3 text-left">
                             <c:out value="${sysMessage.acctType}"></c:out>
                        </div>
                         <label class="col-sm-3 text-right">消息类型：</label>
                        <div class="col-sm-3 text-left">
                             <c:out value="${sysMessage.type}"></c:out>
                        </div>
                    </div>
                     <div class="form-group form-group-xs" >
                        <label class="col-sm-2 text-right">标题：</label>
                        <div class="col-sm-3 text-left">
                             <c:out value="${sysMessage.title}"></c:out>
                        </div>
                        
                    </div>
                     <div class="form-group form-group-xs" >
                        <label class="col-sm-2 text-right">内容：</label>
                        <div class="col-sm-9 text-left">
                             <c:out value="${sysMessage.content}"></c:out>
                        </div>
                    </div>
                     <div class="form-group form-group-xs" >
                       <label class="col-sm-2 text-right">状态：</label>
                        <div class="col-sm-3 text-left">
                             <c:out value="${sysMessage.status == 0?'新建':(sysMessage.status == 1?'已发送':'已删除') }"></c:out>
                        </div>
                        <label class="col-sm-3 text-right">更新时间：</label>
                        <div class="col-sm-3 text-left">
                             <c:out value="${sysMessage.updDatetime}"></c:out>
                        </div>
                    </div>
                    <c:if test="${url != '' }">
                    <c:forEach items="${url}" var="list">
                    <c:if test="${list != null }">
                    <div class="form-group form-group-xs">
                        <label class="col-sm-2 text-right">附件：</label>
                        <div class="col-sm-9 text-left">
                        	<label><c:out value="${list.fileName}"></c:out></label> <a href="javascript:showImg('<c:out value="${list.url}"></c:out>','<c:out value="${list.fileName}"></c:out>','<c:out value="${list.sysInfoAttachId}"></c:out>')"  >下载</a>
                        </div>
                        </div>
                    </c:if>
                    </c:forEach>
                    </c:if>-->
                </form> 
                <form action="${ctx}/sysMessage/downloadResult.html" method="post" id="fileForm">
                   <input type="hidden" id="sysInfoAttachId" name="sysInfoAttachId" value="">
                	<input type="hidden" id="filePath" name="filePath" value="">
                    <input type="hidden" id="fileName" name="fileName" value="">
                </form>
   
    </section>
    <script src="${ctx}/lib/js/jquery.min.js" type="text/javascript"></script>
    <script src="${ctx}/lib/js/bootstrap.min.js" type="text/javascript"></script>
    <script src="${ctx}/lib/plugins/slimScroll/jquery.slimscroll.min.js"></script>
    <script src="${ctx}/lib/js/app.js" type="text/javascript"></script>
    <script src="${ctx}/lib/plugins/datepicker/bootstrap-datepicker.js"></script>
    <script src="${ctx}/lib/js/HNApp.js"></script>
    <script src="${ctx}/lib/plugins/datepicker/bootstrap-datepicker.js"></script>
    <script src="${ctx}/lib/plugins/input-mask/jquery.inputmask.js"></script>
    <script src="${ctx}/lib/plugins/input-mask/jquery.inputmask.extensions.js"></script>
    <script type="text/javascript">
    	  function closeDiv(){
          	var dialog = top.dialog.get(window);
          	 dialog.remove();	
          	 return false;
          }
     function showImg(imgPath, profileName,id) {
    	$("#filePath").val(imgPath);
    	$("#fileName").val(profileName);
    	$("#sysInfoAttachId").val(id);
    	$("#fileForm").submit();
     }
   
    </script>
</body>
</html>
